﻿using Newtonsoft.Json;

namespace FeiShu.Entity.Adapter.FeiShuWork
{
    public class UserAccessTokenResponse : BaseResponse
    {
        public UserAccessTokenData data { get; set; }
    }
    public class UserAccessTokenData
    {
        /// <summary>
        /// user_access_token，用于获取用户资源
        /// </summary>
        [JsonProperty("access_token")]
        public string access_token { get; set; }

        /// <summary>
        /// token 类型
        /// </summary>
        [JsonProperty("token_type")]
        public string token_type { get; set; }

        /// <summary>
        /// access_token 的有效期，单位: 秒
        /// </summary>
        [JsonProperty("expires_in")]
        public int expires_in { get; set; }

        /// <summary>
        /// 用户姓名
        /// </summary>
        [JsonProperty("name")]
        public string name { get; set; }

        /// <summary>
        /// 用户邮箱
        /// </summary>
        [JsonProperty("email")]
        public string email { get; set; }

        /// <summary>
        /// 用户手机号
        /// </summary>
        [JsonProperty("mobile")]
        public string mobile { get; set; }
    }
}
